package com.shoeshopping.dao.pc;

import java.util.List;

import org.hibernate.Session;
import org.springframework.stereotype.Repository;

import com.shoeshopping.dao.BaseDaoImpl;
import com.shoeshopping.entity.Order;
import com.shoeshopping.entity.OrderItem;
import com.shoeshopping.utils.pc.HibernateUtils;

@Repository("getIntoOrderDao")
public class GetIntoOrderDaoImpl extends BaseDaoImpl implements GetIntoOrderDao {
	
	@Override
	public List find(String orderId) {
		String hql = "from Order o where o.id = " + orderId;
		return super.find(hql);
		//return this.find(hql);
	}

	
	//My own mehtod by pc
	@Override
	public void deleteOrder(Order order) {
		this.delete(order);
	}

	
}
